package com.scud.client.config;


import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DefaultConfig {

    @Bean
    public Logger.Level loglevel(){
        return Logger.Level.BASIC;
    }

//    @Bean
//    public RequestInterceptor userInfoInterceptor(){
//        return requestTemplate -> {
//            Object credentials = SecurityContextHolder.getContext().getAuthentication().getCredentials();
//            if (!Objects.isNull(credentials)){
//                requestTemplate.header("token", String.valueOf(credentials));
//            }
//        };
//    }

}
